#    Shotscreens
#    Copyright (C) 2010, Vadim Zakondyrin (http://crystalnix.com)

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.

#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

QT       += core gui network

unix {
DESTDIR = ../../ShotScreens
}

TARGET = shotscreens
TEMPLATE = app

SOURCES += main.cpp\
    Interfaces/authorizationmenu.cpp \
    Interfaces/tray.cpp \
    Editor/paintproperties.cpp \
    Editor/QGraphicsItems/qgraphicsbrushitem.cpp \
    Editor/QGraphicsItems/qgraphicsarrowitem.cpp \
    Editor/QGraphicsItems/qgraphicspainter.cpp \
    Editor/screenshotseditor.cpp \
    Editor/QGraphicsItems/qgraphicsbound.cpp \
    Editor/QGraphicsItems/qgraphicstextrectitem.cpp \
    texttodraw.cpp \
    applicationwindowitem.cpp \
    authdialog.cpp \
    registredialog.cpp \
    Interfaces/settingsmenu.cpp \
    fullscreenwidget.cpp \
    settings.cpp \
    globalshortcut.cpp

HEADERS  += \
    Interfaces/authorizationmenu.h \
    Interfaces/tray.h \
    ../pluginSDK/UploaderInterface.h \
    Editor/paintproperties.h \
    Editor/QGraphicsItems/qgraphicsbrushitem.h \
    Editor/QGraphicsItems/qgraphicsarrowitem.h \
    Editor/QGraphicsItems/paintmodes.h \
    Editor/QGraphicsItems/qgraphicspainter.h \
    Editor/screenshotseditor.h \
    Editor/QGraphicsItems/qgraphicsbound.h \
    Editor/QGraphicsItems/qgraphicstextrectitem.h \
    texttodraw.h \
    applicationwindowitem.h \
    authdialog.h \
    registredialog.h \
    Interfaces/settingsmenu.h \
    fullscreenwidget.h \
    settings.h \
    globalshortcut.h

macx {
        LIBS  += -framework Carbon \
            -framework Cocoa
        SOURCES += globalshortcut_mac.cpp
        HEADERS += CGSPrivate.h
        OBJECTIVE_SOURCES += \
            fullscreenwidget_mac.mm
     }

win32 {
        LIBS      += -luser32
        SOURCES += globalshortcut_win.cpp
      }

unix:!macx {
        SOURCES += globalshortcut_x11.cpp
      }

FORMS += \
   Interfaces/authorizationmenu.ui \
   menuscreenshot.ui \
   Editor/paintproperties.ui \
   Editor/screenshotseditor.ui \
   texttodraw.ui \
   authdialog.ui \
   registredialog.ui \
   Interfaces/settingsmenu.ui

RESOURCES += \
    icon.qrc
